#!/bin/bash

case "$1" in
	start)
		mpScreenSaver /home/htpc/piksla/video/misc/screensaver.avi -loop 0 -fs -display :0
	;;
	
	stop)
		killall mpScreenSaver
	;;
	
	restart)
		killall mpScreenSaver
		mpScreenSaver /home/htpc/piksla/video/misc/screensaver.avi -loop 0 -fs -display :0
	;;
	
	*)
		echo "Usage: $N {start|stop|restart}" >&2
		exit 1
	;;
esac

exit 0